package com.atguigu.gmall.item;


import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.item.impl.ItemDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-item", fallback = ItemDegradeFeignClient.class)
public interface ItemFeignClient {

    /**
     *  将商品详情微服务的url 地址发布到feign 接口上！
     * @param skuId
     * @return
     */
    @GetMapping("/api/item/{skuId}")
    //将商品详情微服务的url 地址发布到feign接口上
    Result skuItem(@PathVariable Long skuId);

}

